# -*- coding: utf-8 -*-
class chargemanagerPage():
    def __init__(self,driver):
        self.driver=driver
#     收费管理
    def btnChargeManager(self):
        return self.driver.find_element_by_xpath('//*[@id="1"]/b')
    # 保费匹配
    def btnPremiummatch(self):
        return self.driver.find_element_by_xpath('//*[@id="huadong1"]/dl[2]/dd[1]/a')
    # 账户名称
    def inpFeeCustAccName(self):
        return self.driver.find_element_by_xpath('//*[@id="FeeCustAccName"]')
    # 查询
    def btnQuery(self):
        return self.driver.find_element_by_xpath('//*[@id="divFeePremInfo"]/table/tbody/tr[3]/td[1]/input[1]')
    def chbFinDataGridChk(self):
        return self.driver.find_element_by_xpath('//*[@id="FinDataGridChk0"]')
    def chbChoosedDataGridChk(self):
        return self.driver.find_element_by_xpath('//*[@id="ChoosedDataGridChk0"]')
    # 选择
    def btnChoose(self):
        return self.driver.find_element_by_xpath('//*[@id="OptionFeeButton"]')
    # 业务营收数据
    # 保单号
    def inpDuePayGrpContNo(self):
        return self.driver.find_element_by_xpath('//*[@id="DuePayGrpContNo"]')
    # 查询
    def btnQuery2(self):
        return self.driver.find_element_by_xpath('//*[@id="divWaitMatchingInfo1"]/input[2]')
    # 选择
    def radBusinessDataGridSel(self):
        return self.driver.find_element_by_xpath('//*[@id="BusinessDataGridSel0"]')

    def btnPremMatchButton(self):
        return self.driver.find_element_by_xpath('//*[@id="PremMatchButton"]')

    # 待保费匹配确认
    def radMatchingConfirmGridSel(self):
        return self.driver.find_elements_by_name('MatchingConfirmGridSel')
    # 保费匹配确认
    def btnConfirmButton(self):
        return self.driver.find_element_by_xpath('//*[@id="ConfirmButton"]')
    def btnConfirm(self):
        return self.driver.find_element_by_xpath('//*[@id="huadong1"]/dl[2]/dd[2]/a')
    def btnQuery3(self):
        return self.driver.find_element_by_xpath('//*[@id="divInfo1"]/input')
    def btnMatchInfoGridSel(self):
        return self.driver.find_elements_by_name('MatchInfoGridSel')[-1]
    def btnConfirmConclusion(self):
        return self.driver.find_element_by_xpath('//*[@id="ConfirmConclusion"]')
    def secConfirmConclusion(self):
        return self.driver.find_element_by_xpath('//*[@id="codeselect"]')
    def inpConfirmDesc(self):
        return self.driver.find_element_by_xpath('//*[@id="ConfirmDesc"]')
    def btnMatchConfirmButton(self):
        return self.driver.find_element_by_xpath('//*[@id="MatchConfirmButton"]')



